﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLDC.Common.Estate;
namespace ZLDC.Estate.Quantify.Report
{
    public partial class lp_ForSale : System.Web.UI.Page
    {
        protected string ftype, deptid, addDate2, addDate1;
        protected void Page_Load(object sender, EventArgs e)
        {
            ftype = _Request.GetString("ftype","");
            deptid = _Request.GetString("deptid",_Utility.GetInfoBySession().m_sDeptID);
            addDate2 = _Request.GetString("addDate2","");
            addDate1 = _Request.GetString("addDate1", "");
            
            hiddeptid.Value = deptid;
            hidftype.Value = ftype;
            if (!IsPostBack)
            {
                if (addDate1 != "")
                {
                    Text1.Value = addDate1;
                    Text2.Value = addDate2;
                    Text3.Value = addDate1;
                    Text4.Value = addDate2;

                }
            }
            GetDeptList();
        }

        protected void GetDeptList()
        {
           string depttype = ZLDC.Topo.BLL.Estate.lp_Report_list.GetType(deptid);//获取部门类型
           if (depttype == "分行")
           {
               hiddepttype.Value = "1";
           }
        }
    }
}
